#include <iostream>
#include <regex>
#include <unordered_map>
#include "tool/MessagePoolsTool.hpp"
#include "type/ClientType.hpp"
#include "message/client/TestMessage.hpp"
int main() {


    MessagePoolsTool<ClientType::MESSAGE_TYPE> pool(10);

    TestMessage* message = nullptr;

    std::string messageStr = "{type:5;cc:2sa}";
    if (pool.acquireMessge(messageStr,message)) {
        std::cout << "yes" << std::endl;
        std::cout << message << std::endl;
    }

    else std::cout << "no" << std::endl;












    return 0;
}